package com.example.his.api.front.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.his.api.db.pojo.OrderEntity;
import com.example.his.api.utils.PageUtils;

import java.util.HashMap;
import java.util.Map;

public interface OrderService extends IService<OrderEntity> {
    public HashMap createPayment(Map param);

    public boolean updatePayment(Map param);

    public Integer searchCustomerId(String outTradeNo);

    /**
     *查询支付结果
     */
    public boolean searchPaymentResult(String outTradeNo);

    public PageUtils searchByPage(Map param);

    public boolean refund(Map param);


    public boolean updateRefundStatus(String outRefundNo);


    public String payOrder(int customerId, String outTradeNo);
    public boolean closeOrderById(Map param);

    public boolean hasOwnOrder(Map param);

}
